package cn.ipenta.auth.entity;

import javax.persistence.*;

/**
 * @author ipenta
 * @ClassName: User
 * @Description: TODO
 * @date 2017-09-27 下午12:55
 */
@Entity
@Table(name = "user_")
public class User {

	public User(){

	}

	public User(String username,String password){
		this.username = username;
		this.password = password;
	}

	//用户名
	@Column(name = "username_")
	private String username;

	//密码
	@Column(name = "password_")
	private String password;

	//用户id
	@Id
	@Column(name = "id_")
	@GeneratedValue
	private long id;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
}

